<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="./js/vue.js"></script>
<body>
    <div class="box">
        <!-- <h1>{{msg}}
            <button>test</button>
        </h1> -->
    </div>
    <script>
        let Cmp = {
            template:'<h2>{{msg}}</h2>',
            data(){
                return{
                    msg:'都听课了吗？'
                }
            }
        }
       let vm = new Vue({
        //    el:'.box',
           /* data:{
               msg:'洋洋很帅'
           } */
           /*  render:function(createElement){
                return createElement('h1',{class:'box'},['洋洋很帅',createElement('button',{class:'btn'},['test'])]);
            } */
           /* render:function(createElement){
                   return createElement(Cmp); 
           } */
           /* render(createElement){
                return createElement(Cmp);
           } */
           /* render(h){
              return h(Cmp);
           } */
           render:h=> h(Cmp)
       })
       vm.$mount('.box');
    </script>
</body>
</html>